package com.qys.erp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.qys.erp.mapper.DeliveryLogMapper;
import com.qys.erp.domain.DeliveryLog;
import com.qys.erp.service.IDeliveryLogService;

/**
 * 出库记录Service业务层处理
 * 
 * @author qys
 * @date 2021-08-21
 */
@Service
public class DeliveryLogServiceImpl implements IDeliveryLogService 
{
    @Autowired
    private DeliveryLogMapper deliveryLogMapper;

    /**
     * 查询出库记录
     * 
     * @param logId 出库记录ID
     * @return 出库记录
     */
    @Override
    public DeliveryLog selectDeliveryLogById(Long logId)
    {
        return deliveryLogMapper.selectDeliveryLogById(logId);
    }

    /**
     * 查询出库记录列表
     * 
     * @param deliveryLog 出库记录
     * @return 出库记录
     */
    @Override
    public List<DeliveryLog> selectDeliveryLogList(DeliveryLog deliveryLog)
    {
        return deliveryLogMapper.selectDeliveryLogList(deliveryLog);
    }

    /**
     * 新增出库记录
     * 
     * @param deliveryLog 出库记录
     * @return 结果
     */
    @Override
    public int insertDeliveryLog(DeliveryLog deliveryLog)
    {
        return deliveryLogMapper.insertDeliveryLog(deliveryLog);
    }

    /**
     * 修改出库记录
     * 
     * @param deliveryLog 出库记录
     * @return 结果
     */
    @Override
    public int updateDeliveryLog(DeliveryLog deliveryLog)
    {
        return deliveryLogMapper.updateDeliveryLog(deliveryLog);
    }

    /**
     * 批量删除出库记录
     * 
     * @param logIds 需要删除的出库记录ID
     * @return 结果
     */
    @Override
    public int deleteDeliveryLogByIds(Long[] logIds)
    {
        return deliveryLogMapper.deleteDeliveryLogByIds(logIds);
    }

    /**
     * 删除出库记录信息
     * 
     * @param logId 出库记录ID
     * @return 结果
     */
    @Override
    public int deleteDeliveryLogById(Long logId)
    {
        return deliveryLogMapper.deleteDeliveryLogById(logId);
    }
}
